Skip to content

Update Hub ip-based restrictions

Request

Modified the ip-based restrictions settings.

Security
ApiKeyAuth
Path
subdomainstringrequired

Unique subdomain of requested Hub.

Query
api_versionstring

Api version

Value:"V3-R1"
Bodyapplication/json
enabledboolean
ip_whitelistArray of any
Example:
[ "54.210.121.161", "144.201.96.0/21" ]
curl -i -X PUT \
  'https://subdomain-of-your-account.app.statushub.io/api/v3/hubs/{subdomain}/access_restriction/ip_whitelist?api_version=V3-R1' \
  -H 'Content-Type: application/json' \
  -H 'X-API-KEY: YOUR_API_KEY_HERE' \
  -d '{
    "enabled": true,
    "ip_whitelist": [
      "54.210.121.161",
      "144.201.96.0/21"
    ]
  }'

Responses

OK

Bodyapplication/json
enabledboolean
ip_whitelistArray of any
Example:
[ "54.210.121.161", "144.201.96.0/21" ]
Response
{ "enabled": true, "ip_whitelist": [ "54.210.121.161", "144.201.96.0/21" ] }